import re

a = 'python 1111java574836php'


r = re.findall('[a-z]{3,6}?', a)
print(r)
